/**
 * Created by rockyren on 15/1/1.
 */
var orderApp = angular.module('orderApp', ['ngRoute', 'commonServices', 'commonDirective', 'addressController']);

orderApp.config(['$routeProvider', function($routeProvider){
  var tplsUrl = 'ngApp/order/tpls/';
  $routeProvider
    .when('/', {
      templateUrl: tplsUrl + 'order.html',
      controller: 'orderIndexController'
    })
    .when('/info/:orderId', {
      templateUrl: tplsUrl + 'order-info.html',
      controller: 'orderShowController'
    })
    .when('/success', {
      templateUrl: tplsUrl + 'order-success.html'
    })
    .otherwise({
      redirectTo: '/'
    })
}]);